﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;


namespace Aplicacion.Modelos
{
    public class AppDb : DbContext
    {
        public DbSet<Impresora> Impresora { get; set; }
        public DbSet<Marca> Marca { get; set; }
        public DbSet<Modelo> Modelo { get; set; }
        public DbSet<Edificio> Edificio { get; set; }
        public DbSet<Oficina> Oficina { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder){
         modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
     }

    }



    public class InicializarBase : DropCreateDatabaseIfModelChanges<AppDb>
    {
    }




}